package com.atguigu.tingshu.order.service;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.atguigu.tingshu.vo.order.OrderInfoVo;
import com.atguigu.tingshu.vo.order.TradeVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface OrderInfoService extends IService<OrderInfo> {


    /**
     * 订单确认数据汇总
     * @param userId 用户id
     * @param tradeVo 选择购买商品交易vo对象
     * @return
     */
    OrderInfoVo tradeData(Long userId, TradeVo tradeVo);

    Map<String, String> submitOrder(Long userId, OrderInfoVo orderInfoVo);
}
